package com.qding.park.manager.pojo.enums;

/**
 * @author Administrator
 *车场状态
 */
public enum ParkStatuEnum {
	ONLINE(1, "在线"), OUTLINE(0, "离线");

	private int code;

	private String desc;

	public static String fromInt(int code) {
		String str = "";

		if (code == ONLINE.getCode()) {
			str=ONLINE.getDesc();
		}else if(code == OUTLINE.getCode()){
			str=OUTLINE.getDesc();
		}
		return str;
	}

	private ParkStatuEnum(int code, String desc) {
		this.code = code;
		this.desc = desc;

	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

}
